import moment from "moment";

class Utils {
  deepCopy(obj) {
    return JSON.parse(JSON.stringify(obj));
  }

  showToast(info) {
    uni.showToast({
      title: info,
      icon: "none",
      duration: 1500,
    });
  }

  moment() {
    moment.locale("zh-cn");
    return moment;
  }
}

const utils = new Utils();

export default utils;
